package com.fht.spring_boot_study.model.account.service;
import com.fht.spring_boot_study.model.account.entity.Role;
import com.fht.spring_boot_study.model.common.entity.ResultEntity;
import com.fht.spring_boot_study.model.common.entity.SearchBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {
    ResultEntity<Role> insertRole(Role role);

    ResultEntity<Role> updateRole(Role role);

    ResultEntity<Object> deleteRoleById(int id);

    Role getRoleById(int id);

    List<Role> getRolesByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
